
public class test2 {

	public static void main(String[] args) {
		// protected members are similar to default and
		// are accessible within same class without inheriting
		Test obj =new Test();
		System.out.println(obj.var);
		
	}
}
